#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define N 15
int main()
{
	int arr[N] = { 1,2,3,4,1,2,4,111,111,1131};
	int dog = 0;
	for (int i = 0; i < N; i++)
	{
		dog ^= arr[i];
	}
	int count = 0;
	for (int i = 0; i < 32; i++)
	{
		if (dog & 1 << i)
		{
			count = i;
			break;
		}
	}
	int dog1 = 0, dog2 = 0;
	for (int i = 0; i < N; i++)
	{
		if (arr[i] & 1 << count)
			dog1 ^= arr[i];
		else
			dog2 ^= arr[i];
	}
	printf("%d  %d",dog1,dog2);
}
